package com.example.blank700.intentreceiverinxml;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class OtherActivity extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {
        //从Intent中获取值
        String value = intent.getStringExtra("testIntent");
        //Log.e(String tag, String msg);
        Log.e("IntentReceiver-->Test", value);
    }
}
